Mod4 D :Exec dmenu_run -i -fn Terminus:pixelsize=20 -nb black -nf green -sb green -sf black
Mod4 Q :Exec echo "DuckDuckGo Search"| dmenu -i -fn Terminus:pixelsize=20 -nb black -nf red -sb red -sf black > ~/.ddgsearch && cat ~/.ddgsearch | ddg > .ddgresult && DDGSEARCH=$(cat ~/.ddgsearch) && DDGRESULT=$(cat ~/.ddgresult) && notify-send $DDGSEARCH $DDGRESULT -i ~/.ddg.png -t 0

Mod4 L :Exec xscreensaver-command -lock

# click on the desktop to get menus
OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu

# alt + left/right click to move/resize a window
OnWindow Mod4 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
OnWindowBorder Move1 :StartMoving

OnWindow Mod4 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}
OnLeftGrip Move1 :StartResizing bottomleft
OnRightGrip Move1 :StartResizing bottomright

# left click on the titlebar to move the window
OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab}
OnTitlebar Move1  :StartMoving

# right click on the titlebar for a menu of options
OnTitlebar Mouse3 :WindowMenu

# alt-tab
Mod4 Tab :PrevWindow {groups} (workspace=[current])

# volume settings, using common keycodes
# if these don't work, use xev to find out your real keycodes
176 :Exec amixer sset Master,0 1+
174 :Exec amixer sset Master,0 1-
160 :Exec amixer sset Master,0 toggle

# current window commands
Mod4 C :Close
Mod4 Shift C :Kill
Mod4 F :Maximize

# change to previous/next workspace
Mod4 Left :PrevWorkspace
Mod4 Right :NextWorkspace

# send the current window and follow it to previous/next workspace
Shift Mod4 Left :TakeToPrevWorkspace
Shift Mod4 Right :TakeToNextWorkspace

# change to a specific workspace
Mod4 1 :Workspace 1
Mod4 2 :Workspace 2
Mod4 3 :Workspace 3
Mod4 4 :Workspace 4
Mod4 5 :Workspace 5
Mod4 6 :Workspace 6
Mod4 7 :Workspace 7
Mod4 8 :Workspace 8
Mod4 9 :Workspace 9

# send the current window and change to a specific workspace
Shift Mod4 1 :TakeToWorkspace 1
Shift Mod4 2 :TakeToWorkspace 2
Shift Mod4 3 :TakeToWorkspace 3
Shift Mod4 4 :TakeToWorkspace 4
Shift Mod4 5 :TakeToWorkspace 5
Shift Mod4 6 :TakeToWorkspace 6
Shift Mod4 7 :TakeToWorkspace 7
Shift Mod4 8 :TakeToWorkspace 8
Shift Mod4 9 :TakeToWorkspace 9

# Copy and Paste
Mod4 v :Exec $(xclip -o)

# MPV-Youtube
Mod4 e :Exec mpv --ytdl-format="best[height<720]" --profile="pseudo-gui" --save-position-on-quit --autofit="900" $(xclip -o)
